import request from "@/utils/request.js";

//获取当前用户所有聊天
export const getAllMessage = () => request.get("/message/all")

//发送消息
export const sendMessage = (data) => request.post("/message/send", data)

//将当前消息设置为已读
export const readMessage = (params) => request.put(`/message/read/${params}`)

//删除当前会话
export const deleteMessage = (params) => request.delete("/message/delete", {params})

//创建会话
export const createChatSession = (data) => request.post("/message/createChatSession", data)